﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplication1.Models.Liga>" %>

<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {
        Modo.Items.Add(new ListItem("Ida"));
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Creación de Ligas</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Ingrese los campos solicitados</legend>
                                   
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre) %>
                <%: Html.ValidationMessageFor(model => model.Nombre) %>
            </div>
            
            <p>
                <asp:Label ID="label" Text="Formato:" runat="server"></asp:Label>
            </p>
            <p>
                <asp:DropDownList ID="Modo" runat="server"></asp:DropDownList>
            </p>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Ligas existentes", "Index") %>
    </div>

</asp:Content>

